package com.example.customannotation.customAnnotaition;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created with IntelliJ IDEA 2023.
 * Description:
 * User: homechen
 * Date: 2024-04-24
 * Time: 19:50
 */
@Target(ElementType.METHOD)  // 此注解加在方法上面
@Retention(RetentionPolicy.RUNTIME)   // 程序运行时会起效
public @interface CustomLogAnnotation {
    String value() default "";

    boolean enable() default true; // 是否启用
}
